package com.example.javagd.pojo;

import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @program: java-general-development
 * @description:
 * @author: hzy
 * @create: 2021-04-02 12:01
 **/

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("my_template")
@ApiModel(value = "template", description = "template设置")
public class MyTemplatePojo extends BasePojo {

    //变量名用驼峰式，字段下划线连接,value设置成数据库字段，方便自动生成。
    //注解和申明在同一行。后面添加注释
    //在字段最后加上注释isKey,可以替代ID成为单表主键。 曾作为主键的字段自动设置成不为空
    //oldField=value表明是替换原先某个字段.注解用逗号隔开
    //eg: iskey,oldField=key_str3
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "key_str") private String keyStr;//

    @ApiModelProperty(value = "key_bigint") private Long keyBigint;

    @ApiModelProperty(value = "key_int") private int keyInt;

}
